let hd = "afdsfw3282372sefqw9222";
//取出字符串中的数字
let num = [...hd].filter((item) => !Number.isNaN(parseInt(item)));
console.log(num.join(""));
//正则实现
console.log(hd.match(/\d/g).join(""));
